<style>

    .current{
        color: cyan;
    }
    .logged{
        font-size: 16px;
        color: cyan;

    }
    .logged .logout{
        margin-left: 20px;
        margin-bottom: 15px;
    }
    .logged .logout a{
        color: cornflowerblue;
        text-decoration: none;
    }
    .logged .logout a:hover{
        text-decoration: underline;
    }
    .admin{
        padding-left: 10px;
        color: pink;
    }
</style>
<h1>会员注册管理系统</h1>
<?php
if(isset($_SESSION['loggedUsername']) && $_SESSION['loggedUsername'] <> ' '){
    ?>
    <div class="logged">当前登入者：<?php echo $_SESSION['loggedUsername']; ?><span class="admin"><?php if($_SESSION['isAdmin'])
    {
        echo "<span >欢迎管理员！</span>";

    }?></span> <span class="logout"><a href="logout.php">注销登入</a></span></div>
<?php }
$id = isset($_GET['id'])? $_GET['id'] : 1;

?>
<h2>
    <a href="index.php?id=1" <?php if($id == 1){?> class="current" <?php } ?> >首页</a>
    <a href="singup.php?id=2" <?php if($id == 2){?> class="current" <?php } ?>>会员注册</a>
    <a href="login.php?id=3" <?php if($id == 3){?> class="current" <?php } ?>>会员登入</a>
    <a href="modify.php?id=4&source=member" <?php if($id == 4){?> class="current" <?php } ?>>个人资料修改</a>
    <a href="admin.php?id=5" <?php if($id == 5){?> class="current" <?php } ?>>后台管理</a>
</h2>
